package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.GoodsAttachment;
import com.ecoolex.ying.space.entity.GoodsAttachmentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface GoodsAttachmentMapper {
    long countByExample(GoodsAttachmentExample example);

    int deleteByExample(GoodsAttachmentExample example);

    int deleteByPrimaryKey(Integer attachmentId);

    int insert(GoodsAttachment record);

    int insertSelective(@Param("record") GoodsAttachment record, @Param("selective") GoodsAttachment.Column ... selective);

    GoodsAttachment selectOneByExample(GoodsAttachmentExample example);

    GoodsAttachment selectOneByExampleWithBLOBs(GoodsAttachmentExample example);

    List<GoodsAttachment> selectByExampleWithBLOBs(GoodsAttachmentExample example);

    List<GoodsAttachment> selectByExample(GoodsAttachmentExample example);

    GoodsAttachment selectByPrimaryKey(Integer attachmentId);

    GoodsAttachment selectByPrimaryKeyWithLogicalDelete(@Param("attachmentId") Integer attachmentId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") GoodsAttachment record, @Param("example") GoodsAttachmentExample example, @Param("selective") GoodsAttachment.Column ... selective);

    int updateByExampleWithBLOBs(@Param("record") GoodsAttachment record, @Param("example") GoodsAttachmentExample example);

    int updateByExample(@Param("record") GoodsAttachment record, @Param("example") GoodsAttachmentExample example);

    int updateByPrimaryKeySelective(@Param("record") GoodsAttachment record, @Param("selective") GoodsAttachment.Column ... selective);

    int updateByPrimaryKeyWithBLOBs(GoodsAttachment record);

    int updateByPrimaryKey(GoodsAttachment record);

    int batchInsert(@Param("list") List<GoodsAttachment> list);

    int batchInsertSelective(@Param("list") List<GoodsAttachment> list, @Param("selective") GoodsAttachment.Column ... selective);

    int logicalDeleteByExample(@Param("example") GoodsAttachmentExample example);

    int logicalDeleteByPrimaryKey(Integer attachmentId);
}